<div class="block">
  <div class="content">
    <div class="inner">
      <h2 class="title">メッセージ表示</h2>

      <table class="table">
        <tr><th>タイトル</th><td><%= @message.subject %></td></tr>
        <tr><th>送信者</th><td><%= @message.user.nick_name %></td></tr>
        <tr><th>受信日時</th><td><%= @message.created_at %></td></tr>
        <tr><th>To</th><td><%= @message.to_addrs %></td></tr>
        <tr><th>Cc</th><td><%= @message.cc_addrs %></td></tr>
      </table>

      <h3>本文</h3>
      <%= text_format(@message.body, @message.format_type) %>
      <hr />
      <%= render :partial => "portal/messages/attachments" %>
    </div>
  </div>
</div>

<div class="block">
  <div class="content">
    <div class="inner newLink">
      <%= link_to "再編集", new_portal_message_path(:original_message => @message.id) %>
      　 
      <%= link_to "戻る", portal_message_outbox_index_path %>
    </div>
  </div>
</div>
